package controllers

import (
	"project/repositories"
	"project/services"
)

type MovieController struct {
}

func (c *MovieController) Get() string {
	//创建数据库操作对象
	movieRepository := repositories.NewMovieManager()
	//根据service调用接口
	movieService := services.NewMovieServiceManager(movieRepository)
	//获取数据
	MovieResult := movieService.ShowMovieName()
	return MovieResult
}
